#
# Be sure to run `pod lib lint MTYPushSDK.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'MTYPushSDK'
  s.version          = '0.7.5'
  s.summary          = 'A short description of MTYPushSDK.'

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'http://j7.hnxmny.com:8088/a/Houtu/IOS-IHPush'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'eagle' => 'eagle@yabotiyu.net' }
  s.source           = { :git => 'http://j7.hnxmny.com:8088/a/Houtu/IOS-IHPush', :tag => s.version.to_s }
  
  #armv7 armv7s x86_64 arm64 
  valid_archs = ['armv7','armv7s','x86_64','arm64']
  s.xcconfig = {'VALID_ARCHS' =>  valid_archs.join(' '),}
  s.pod_target_xcconfig = {'ARCHS[sdk=iphonesimulator*]' => '$(ARCHS_STANDARD_64_BIT)'}

  
  s.static_framework = true
  s.ios.deployment_target = '10.0'
  s.default_subspec = 'MTYPush'
  s.frameworks = 'UIKit','UserNotifications'
  s.library = 'resolv','z'

  s.subspec 'MTYPush' do |ms|
    ms.ios.deployment_target = '9.0'
    ms.source_files = 'MTYPushSDK/Classes/MTYPush/**/*.{h,m}'
    ms.public_header_files = 'MTYPushSDK/Classes/MTYPush/**/*.h'
    ms.dependency 'AFNetworking'
  end

  s.subspec 'JGPush' do |jg|
    jg.ios.deployment_target = '9.0'
    jg.source_files = 'MTYPushSDK/Classes/JGPush/**/*.{h,m}'
    jg.public_header_files = 'MTYPushSDK/Classes/JGPush/**/*.h'
#    jg.dependency 'JPush','3.2.2'
    jg.dependency 'MTYPushSDK/MTYPush'
    jg.vendored_libraries = 'MTYPushSDK/Classes/JGPush/*.a'
    jg.frameworks = 'UIKit','CFNetwork','CoreFoundation','CoreTelephony','SystemConfiguration','CoreGraphics','Foundation','Security'

  end
  
  s.subspec 'JGServiceExtension' do |jgs|
    jgs.ios.deployment_target = '10.0'
    jgs.source_files = 'MTYPushSDK/Classes/JGServiceExtension/**/*.{h,m}'
    jgs.public_header_files = 'MTYPushSDK/Classes/JGServiceExtension/**/*.h'
    jgs.ios.vendored_libraries = 'MTYPushSDK/Classes/JGServiceExtension/*.a'

#    jgs.dependency 'JPushExtension', '1.1.2'
  end

end
